package com.guoguo.utils.aliOss;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by Administrator on 2017/9/18 0018.
 */

     /*
                           _ooOoo_
                          o8888888o
                          88" . "88
                          (| -_- |)
                          O\  =  /O
                       ____/`---'\____
                     .'  \\|     |//  `.
                    /  \\|||  :  |||//  \
                   /  _||||| -:- |||||-  \
                   |   | \\\  -  /// |   |
                   | \_|  ''\---/''  |   |
                   \  .-\__  `-`  ___/-. /
                 ___`. .'  /--.--\  `. . __
              ."" '<  `.___\_<|>_/___.'  >'"".
             | | :  `- \`.;`\ _ /`;.`/ - ` : | |
             \  \ `-.   \_ __\ /__ _/   .-` /  /
        ======`-.____`-.___\_____/___.-`____.-'======
                           `=---='
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                 佛祖保佑       永无BUG
        */
public abstract class AbstractAliOssImage implements AliOssImage {
    private static final Logger logger = LoggerFactory.getLogger(AbstractAliOssImage.class);
    public static String imageStyle = "image/";

    /**
     * 验证参数
     *
     * @param args
     * @param min
     * @param max
     * @return
     */
    public boolean valiArgs(int args, int min, int max) {
        if (args >= min && args <= max) {
            return true;
        } else {
            logger.info("===========>>>>>>        参数 [" + args + "] 不在范围 [" + min + " - " + max + "]内！");
            return false;
        }
    }

}
